
#ifndef  __DE_MUSIC_H__
#define  __DE_MUSIC_H__

#include "pt_include.h"
#include "pt_printk.h"


typedef struct _d_music_para_t 
{
	int32_t			 is_end;

	int32_t			 a_index;
	int64_t   		 a_duration;

	AVStream *		 a_stream;

	AVFormatContext* a_format;
	AVCodecContext*  a_ctx;
	struct AVCodec*  a_codec;

	AVPacket*		 a_packet;
	AVPacket*		 d_packet;
	
	AVFrame* 		 a_frame;

	uint8_t*    	 pcm_buff;
	int32_t          pcm_size;
	
	struct SwrContext* acvt_ctx;

	pthread_t  		 a_thread;
	pthread_t  		 d_thread;
	pthread_t  		 p_thread;
}d_music_para_t;



#endif
